home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / Networking / SANA-II / slip_src / odu / include / clib / pools_protos.h < prev   
Encoding:
Text File  |  1994-02-17  |  1.3 KB  |  33 lines

  1.  /*
  2.   * clib/pools_protos.h
  3.   * 
  4.   * Created 19 May 93 by Christopher A. Wichura (caw@miroc.chi.il.us)
  5.   * 
  6.   * including this file will set up an application for using the link library
  7.   * pools routines transparantly.  We provide the appropriate prototypes for
  8.   * the pool link library and then #define all the exec pool functions to
  9.   * point at the link library.  this makes it very easy to make code written
  10.   * for v39 use pools under older versions of the os.  since the pools
  11.   * routines are in amiga.lib as of v40, one may not even have to edit their
  12.   * makefile.
  13.   */
  14.  
  15. void *__asm AsmAllocPooled(register __a0 void *,
  16.                register __d0 ULONG,
  17.                register __a6 struct ExecBase *);
  18. void *__asm AsmCreatePool(register __d0 ULONG,
  19.               register __d1 ULONG,
  20.               register __d2 ULONG,
  21.               register __a6 struct ExecBase *);
  22. void __asm AsmDeletePool(register __a0 void *,
  23.              register __a6 struct ExecBase *);
  24. void __asm AsmFreePooled(register __a0 void *,
  25.              register __a1 void *,
  26.              register __d0 ULONG,
  27.              register __a6 struct ExecBase *);
  28.  
  29. #define AllocPooled(a, b) AsmAllocPooled(a, b, SysBase)
  30. #define CreatePool(a, b, c) AsmCreatePool(a, b, c, SysBase)
  31. #define DeletePool(a) AsmDeletePool(a, SysBase)
  32. #define FreePooled(a, b, c) AsmFreePooled(a, b, c, SysBase)
  33.